package com.bdy.lm.taximanager.model;

/**
 * Created by Liming on 2017/6/25 0025.
 */

/**
 * 聚合数据json数据格式解析
 */

public class JuAddress {

    /**
     * resultcode : 200
     * reason : Successed!
     * result : {"lat":"26.072445611111","lng":"119.24798333333","type":"1","address":"福建省福州市仓山区闽江大道130号","business":"建新,马榕,淮安","citycode":300,"ext":{"country":"中国","country_code":0,"province":"福建省","city":"福州市","district":"仓山区","adcode":"350104","street":"闽江大道","street_number":"130号","direction":"附近","distance":"15"}}
     * error_code : 0
     */

    private String resultcode;
    private String reason;
    private ResultBean result;
    private int error_code;

    public String getResultcode() {
        return resultcode;
    }

    public void setResultcode(String resultcode) {
        this.resultcode = resultcode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public static class ResultBean {
        /**
         * lat : 26.072445611111
         * lng : 119.24798333333
         * type : 1
         * address : 福建省福州市仓山区闽江大道130号
         * business : 建新,马榕,淮安
         * citycode : 300
         * ext : {"country":"中国","country_code":0,"province":"福建省","city":"福州市","district":"仓山区","adcode":"350104","street":"闽江大道","street_number":"130号","direction":"附近","distance":"15"}
         */

        private String lat;
        private String lng;
        private String type;
        private String address;
        private String business;
        private int citycode;
        private ExtBean ext;

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getLng() {
            return lng;
        }

        public void setLng(String lng) {
            this.lng = lng;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getBusiness() {
            return business;
        }

        public void setBusiness(String business) {
            this.business = business;
        }

        public int getCitycode() {
            return citycode;
        }

        public void setCitycode(int citycode) {
            this.citycode = citycode;
        }

        public ExtBean getExt() {
            return ext;
        }

        public void setExt(ExtBean ext) {
            this.ext = ext;
        }

        public static class ExtBean {
            /**
             * country : 中国
             * country_code : 0
             * province : 福建省
             * city : 福州市
             * district : 仓山区
             * adcode : 350104
             * street : 闽江大道
             * street_number : 130号
             * direction : 附近
             * distance : 15
             */

            private String country;
            private int country_code;
            private String province;
            private String city;
            private String district;
            private String adcode;
            private String street;
            private String street_number;
            private String direction;
            private String distance;

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public int getCountry_code() {
                return country_code;
            }

            public void setCountry_code(int country_code) {
                this.country_code = country_code;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getDistrict() {
                return district;
            }

            public void setDistrict(String district) {
                this.district = district;
            }

            public String getAdcode() {
                return adcode;
            }

            public void setAdcode(String adcode) {
                this.adcode = adcode;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public String getStreet_number() {
                return street_number;
            }

            public void setStreet_number(String street_number) {
                this.street_number = street_number;
            }

            public String getDirection() {
                return direction;
            }

            public void setDirection(String direction) {
                this.direction = direction;
            }

            public String getDistance() {
                return distance;
            }

            public void setDistance(String distance) {
                this.distance = distance;
            }
        }
    }
}
